package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryUpdateInfoParam implements Serializable {
    @NotNull(message = "添加失败，分类名称必须提交")
    @ApiModelProperty(value = "类别名称",required = true,example = "电脑")
    private String name;

    @ApiModelProperty(value = "关键词",required = true,example = "k1,k2")
    private String keywords;

    @NotNull(message = "sort必须提交")
    @Range(min = 1,max = 99,message = "sort必须在0~99之间")
    @ApiModelProperty(value = "类别排序",required = true,example = "50")
    private Integer sort;

    @ApiModelProperty(value = "类别图标",required = true,example = "http")
    private String icon;
}
